package com.whyx.project.openapi.business;

import com.alibaba.fastjson.JSONObject;

import java.text.SimpleDateFormat;
import java.util.List;

public class DeleteRoute extends DistributeEntity {

    //删除数量
    public int deleteCount;
    //标识id
    public List<Integer> signIds;

    public List<Integer> getSignIds() {
        return signIds;
    }

    public void setSignIds(List<Integer> signIds) {
        this.signIds = signIds;
    }

    public JSONObject toJSONString() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        JSONObject object = new JSONObject();
        object.put("deleteCount",deleteCount);
        object.put("signIds",signIds);
        object.put("distributeMsgTopic",distributeMsgTopic);
        object.put("msgId",msgId);
        object.put("devNo",devNo);
        object.put("requestId",requestId);
        object.put("userId",userId);
        object.put("userName",userName);
        object.put("distributeTime",sdf.format(distributeTime));
        object.put("serialNo",serialNo);
        return object;
    }
}
